Fix x86/64 -xenU build. probe_roms() is only defined if building a privleged
authorIan.Campbell@xensource.com <Ian.Campbell@xensource.com>
Mon, 22 May 2006 14:03:46 +0000 (15:03 +0100)
committerIan.Campbell@xensource.com <Ian.Campbell@xensource.com>
Mon, 22 May 2006 14:03:46 +0000 (15:03 +0100)
or !xen build.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/arch/x86_64/kernel/setup-xen.c

index 13ad2b02bcfd060b919de7e1094bab2df9e0a65c..e986dfeafc8e96334e2ef12f8481b1b1d5ab2cec 100644 (file)
@@ -931,8 +931,8 @@ void __init setup_arch(char **cmdline_p)
         * Request address space for all standard RAM and ROM resources
         * and also for regions reported as reserved by the e820.
         */
-       probe_roms();
 #if defined(CONFIG_XEN_PRIVILEGED_GUEST)
+       probe_roms();
        if (xen_start_info->flags & SIF_INITDOMAIN) {
                machine_e820 = alloc_bootmem_low_pages(PAGE_SIZE);
 
@@ -944,6 +944,7 @@ void __init setup_arch(char **cmdline_p)
                e820_reserve_resources(machine_e820, memmap.nr_entries);
        }
 #elif !defined(CONFIG_XEN)
+       probe_roms();
        e820_reserve_resources(e820.map, e820.nr_map);
 #endif